package cn.rongdao.jrkabao.model.loan;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.loan.ApplySuccessBean;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/18
 */

public class VerifyStatusInfoModel extends BaseSuDaiModel {

    public static VerifyStatusInfoModel getInstance() {
        return getPresent(VerifyStatusInfoModel.class);
    }

    public void execute(String cateId,String code,Observer<ApplySuccessBean> observer) {
        addParamStrings("cate_id",cateId);
        addParamStrings("code",code);
        Observable<ApplySuccessBean> observable = mServletApi.getVerifyStatusListData(mParams).map(new HttpFunction<ApplySuccessBean>());
        toSubscribe(observable, observer);
    }
}